/**
 * 
 */
package cc.rico.activemq;

import org.junit.Before;
import org.junit.Test;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.jms.core.JmsTemplate;

/**
 * @author rico 2016年8月14日
 *
 */
public class MessageConsumer {
	private static final Logger logger = LoggerFactory.getLogger(MessageConsumer.class);
	
	@Before
	public void init() {
		
	}
	
	@Test
	public void testConsumeMessage() {
		try {
			ApplicationContext context = new ClassPathXmlApplicationContext("cluster-consumer.xml");
			
			Thread.sleep(10000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
	}

}
